package com.jlf.app.authorization;

import com.jlf.starter.cache.reactive.bean.EnableCacheBeanAnnotation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.security.Security;

/**
 * 授权鉴权服务的入库
 *
 * @author wujr
 * 2023/8/1
 * @version 1.0
 * 【变更历史】
 * [wujr 2023/8/1 1.0 新增]
 */
@SpringBootApplication//(exclude={DataSourceAutoConfiguration.class})
@EnableDiscoveryClient
@EnableScheduling
@Slf4j
@RequiredArgsConstructor
@ComponentScan(basePackages = {"com.jlf.controller"})
public class AuthorizationApplication {
    static {
        // 系统添加BC加密算法 以后系统中调用的算法都是BC的算法
        Security.addProvider(new BouncyCastleProvider());
    }
    public static void main(String[] args) {
        SpringApplication.run(AuthorizationApplication.class, args);
    }
}
